package com.webgis.backendservice.service.Impl;

import com.webgis.backendservice.mapper.POIMapper;
import com.webgis.backendservice.mapper.UserMapper;
import com.webgis.backendservice.pojo.Poi;
import com.webgis.backendservice.pojo.Rate;
import com.webgis.backendservice.pojo.Route;
import com.webgis.backendservice.pojo.User;
import com.webgis.backendservice.service.POIService;
import com.webgis.backendservice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class POIServiceImpl implements POIService {

    @Autowired
    private POIMapper poiMapper;
    @Override
    public List<Poi> getPOI() {
        return poiMapper.getPOI();
    }

    @Override
    public List<Rate> getRateByUser(int treeId) {
        return poiMapper.getRateByUser(treeId);
    }

    @Override
    public void addRate(Rate rate) {
        poiMapper.addRate(rate);
    }

    @Override
    public void addRoute(Route route) {
        poiMapper.addRoute(route);
    }

    @Override
    public List<Route> getRoute() {
        return poiMapper.getRoute();
    }

}
